package com.healthcarex.hip.saas.security.dao;

import com.healthcarex.hip.saas.security.model.RoleWithResource;
import com.healthcarex.hip.saas.security.model.SysRole;
import com.healthcarex.hip.saas.mybatis.config.MyMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author chenpan
 * @ClassName: RoleDao
 * description:
 * @date 2018-04-02 16:35
 */
@Mapper
public interface RoleDao extends MyMapper<SysRole> {

    List<SysRole> findUserRole(String userName);

    RoleWithResource findById(Integer roleId);

    List<RoleWithResource> findRoles(SysRole role);

    List<SysRole> findRolesByResouceId(Integer id);
}
